package com.dhcc.cdc.busi.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.dhcc.cdc.busi.entity.CdcEpisodeEntity;
import com.dhcc.core.framework.base.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.function.LongFunction;

/**
 * 患者就诊信息
 * 
 * @ClassName: CdcEpisodeMapper
 * @Description: TODO
 * @author jumper
 * @date 2021-03-15 10:20:08
 */
public interface CdcEpisodeMapper  extends BaseMapper<CdcEpisodeEntity> {
	
    List<CdcEpisodeEntity> list(@Param("map")Map<String, Object> map);
    List<CdcEpisodeEntity> page(@Param("page") Page<CdcEpisodeEntity> page,@Param("map")Map<String, Object> map);

    List<CdcEpisodeEntity> pageByDate(@Param("page") Page<CdcEpisodeEntity> page,@Param("map") Map<String, Object> map);

    List<CdcEpisodeEntity> listByDate(@Param("map") Map<String, Object> map);

    List<CdcEpisodeEntity> selectByCodedAndDate(@Param("map") Map<String, Object> map);

    String selectByEpisodeId(@Param("episodeId") Long episodeId);

    Long selectIdByXcode(@Param("xcode") String xcode);

    List<CdcEpisodeEntity> selectByPatientCode(@Param("patientCode") String patientCode);

    CdcEpisodeEntity selectByXcode(@Param("xcode") String xcode);

    Map<String, String> getSumInfoById(@Param("episodeId") Long episodeId);
}
